<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>
 
<form name="moduleDataListFromId" id="moduleDataListFromId" method="post" action="module/listByPid.do">
	<s:hidden name="appid" id="module_appid"/>
    <input type="hidden" id="pid" name="module_pid" value="${pid}"/>
    <input type="hidden" id="mdParentId" name="module_ParentId" value="${mdid}"/>
	
	<div class="trans_operate_box clearfix">
		<div class="operate_btns">
			<a class="btn_long" href="javascript:void(0)" onClick="Ext.milan.pagejs.page_modulemanage.backAppsList();">返回</a>
			<a class="btn_long" href="javascript:void(0)" onClick="Ext.milan.pagejs.page_modulemanage.addSame('moduleDataListFromId')">新建模块</a>
			<a class="btn_long" href="javascript:void(0)" onClick="Ext.milan.pagejs.page_modulemanage.modifySelfType('moduleDataListFromId')">编辑本模块</a>
			<a class="btn_long" href="javascript:void(0)" onClick="Ext.milan.pagejs.page_modulemanage.deleteSelfType('moduleDataListFromId')">删除本模块</a>
			<a class="btn_long" href="javascript:void(0)" onClick="Ext.milan.pagejs.page_modulemanage.addSubType('moduleDataListFromId')">添加功能</a>
			<a class="btn_long" href="javascript:void(0)" onClick="Ext.milan.pagejs.page_modulemanage.modifySubType('moduleDataListFromId')">编辑功能</a>
			<a class="btn_long" href="javascript:void(0)" onClick="Ext.milan.pagejs.page_modulemanage.deleteSubType('moduleDataListFromId')">删除功能</a>
	  	</div>   
		<div class="operate_order">	    	
		</div>
  	</div> 
	<table id="moduleDataType_List" width="98%" class="dhtmlxGrid" imgpath="skins/default/images/dhtmlx/" lightnavigation="true" style="table-layout:fixed">
	    <tr>
	          <th width="18%">
	         <%--<input type="checkbox" id="moduleDataCheckAll" name="moduleDataCheckAll" title="全选/全不选">--%> 
	          功能名称</th>
	          <th width="20%">功能编号</th>
	          <th width="18%">排序号</th>
			  <th width="20%">备注</th>
	    </tr>
	     <c:forEach items="${list }" var="item" varStatus="status">
	     <tr class="grid-row-bg1">
	          <td><input title="打勾选择该文件" name="selectCheck" type="checkbox" value="${item.mdid}"> ${item.name}</td>
	          <td>${item.mdno} </td>
			  <td>${item.sortno}</td>
			  <td>${item.remark}</td>
	     </tr>
	     </c:forEach>
     
	     <c:if test="${fn:length(list)==0}">
         <tr>
         	<td colspan="4"><div class="note_red_in_div">没有功能，请先添加功能！</div></td>
         </tr>
	     </c:if>
 
    </table>
      
</form>
